<%@page import="com.caresms.service.Country_MasterLocalServiceUtil"%>
<%@page import="com.caresms.model.Country_Master"%>
<%@include file="/init.jsp" %>

<portlet:actionURL name="addcountry" var="addcountryURL"></portlet:actionURL>

<aui:form name="countryMaster" action="<%=addcountryURL.toString() %>">
<aui:input name="country" type="textbox" label="Country Name" id="category">
<aui:validator name="required" errorMessage="this field is requred"></aui:validator>
<aui:validator name="max">
'20'
</aui:validator>
<aui:validator name="alphanum"></aui:validator>
</aui:input>
<aui:button type="submit" value="ADD" cssClass="submitbtn"></aui:button>
</aui:form>
<%
List<Country_Master> cl=Country_MasterLocalServiceUtil.getCountry_Masters(-1,-1);

%>

<liferay-ui:search-container delta="10" emptyResultsMessage="No Results Found">
<liferay-ui:search-container-results total="<%=cl.size() %>" results="<%=cl%>" />
<liferay-ui:search-container-row modelVar="country" className="com.caresms.model.impl.Country_MasterImpl">
<liferay-ui:search-container-column-text name='Country Name' value="<%=country.getCountryName() %>" href="" />
<liferay-ui:search-container-column-jsp path="/CountryMaster/buttoncountry.jsp" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" paginate="<%= true %>" />



</liferay-ui:search-container>